﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PSE.Framework.Versions.Common.Entities
{
    [DataContract]
    public class Module
    {
        public class Version
        {
            [DataMember]
            public string ModuleVersion { get; set; }
            [DataMember]
            public string ModuleName { get; set; }
            [DataMember]
            public string Client { get; set; }
            [DataMember]
            public string Server { get; set; }
            [DataMember]
            public string ServerUrl { get; set; }
            [DataMember]
            public string Database { get; set; }
        }

        [DataMember]
        public string Folder { get; set; }
        [DataMember]
        public string ModuleName { get; set; }
        public Product Product { get; set; }

        [DataMember]
        public Version Versions { get; set; }

        public override string ToString()
        {
            return this.Folder;
        }
    }
}